<f:view xmlns="http://www.w3.org/1999/xhtml"
	 xmlns:f="http://java.sun.com/jsf/core"
	 xmlns:h="http://java.sun.com/jsf/html"
	 xmlns:p="http://primefaces.org/ui"
	 xmlns:pm="http://primefaces.org/mobile"
	 contentType="text/html">
	 
 <pm:page title="Grocery List Manager">
  <h:form id="groceryListmanager">
 <pm:view id="registration">
 <pm:header title="GroceryList Registration"/>
 <pm:content>
		<h:form id="registerForm">
		
			<p:messages autoUpdate="true"/>
			<h:outputText for="username" value="E-mail: "/>
			<p:inputText id="name" value="#{registerBean.username}"/>
			
			<h:outputText for="pass" value="Password: "/>
			<p:password id="pass" value="#{registerBean.password}"/>
			
			
			
			<h:outputText for="secq" value="Security question: "/>
			<p:inputText id="secq" value="#{registerBean.securityQuestion}"/>
		
			<h:outputText for="seca" value="Security answer: "/>
			<p:inputText id="seca" value="#{registerBean.securityAnswer}"/>
			
            <hr/>
            
			<p:commandButton id="submitRegistration" value="Register!" action="#{registerBean.register}"/>		
			
 

		</h:form>
		
	</pm:content>
 </pm:view>
  </h:form>
 </pm:page>

</f:view>
	